﻿/* 
 * FileName:    IHeartBeatService.cs
 * Author:      gaohongwei<gaohongwei@bjdaxiang.cn>
 * CreateTime:  2016/5/19 14:53:35
 * Version:     v1.0
 * Description:
 * */

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace ET.Score.Service.Interfaces
{
    /// <summary>
    /// 心跳服务契约
    /// </summary>
    [ServiceContract(CallbackContract = typeof(IHeartBeatCallback), SessionMode = SessionMode.Allowed)]
    public interface IHeartBeatService
    {
        /// <summary>
        /// 心跳检测用
        /// </summary>
        /// <param name="machineInfo"></param>
        [OperationContract]
        int HeartMonitor(WcfMachineInfo machineInfo,bool flag=true);
        /// <summary>
        /// 客户端登录
        /// </summary>
        /// <param name="userName"></param>
        [OperationContract]
        void Login(string userName);
        
    }
}
